package com.umeox.watch.moto.chat.bean;

import androidx.annotation.NonNull;

/**
 * Created by zl on 2017/5/16.
 */

public class Photo {

    private String name;//图片名称
    private String path;//图片地址
    private boolean selected;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Photo)) return false;

        Photo photo = (Photo) o;

        return path.equals(photo.path);
    }

    @Override
    public int hashCode() {
        return path.hashCode();
    }

    @NonNull
    @Override
    public String toString() {
        return super.toString();
    }
}
